/*
 * Copyright (c) 2013-2015 Charkey. All rights reserved.
 *
 * This software is the confidential and proprietary information of Charkey.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the agreements you entered into with Charkey.
 *
 * Charkey MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 *
 * Charkey SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package cn.simastudio.talos.common.model;

import cn.simastudio.talos.common.constants.Modules;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * Usage:
 *
 * @author Charkey
 * @date 2015/6/6 11:50
 */
public class JsonResult implements Serializable {

    private static final long serialVersionUID = 3072802849474582969L;

    /**
     * 所属模块
     */
    @JSONField(ordinal = 0)
    private String module = Modules.INTER;

    /**
     * 响应编码
     */
    @JSONField(ordinal = 1)
    private String code;

    /**
     * 响应消息，不存放数据
     */
    @JSONField(ordinal = 2)
    private String message;

    /**
     * 响应数据
     */
    @JSONField(ordinal = 3)
    private Object data = null;

    /**
     * 响应消息For开发者
     */
    @JSONField(name = "develop_message", ordinal = 4)
    private String developMessage = null;

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getDevelopMessage() {
        return developMessage;
    }

    public void setDevelopMessage(String developMessage) {
        this.developMessage = developMessage;
    }
}
